package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.system.entity.Schoolconfig;
import io.geekidea.springbootplus.system.param.SchoolconfigPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.system.vo.SchoolconfigQueryVo;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.List;
import java.io.Serializable;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

/**
 *  服务类
 *
 * @author miko
 * @since 2020-11-16
 */
public interface SchoolconfigService extends BaseService<Schoolconfig> {

    /**
     * 保存
     *
     * @param schoolconfig
     * @return
     * @throws Exception
     */
    boolean saveSchoolconfig(Schoolconfig schoolconfig) throws Exception;

    /**
     * 修改
     *
     * @param schoolconfig
     * @return
     * @throws Exception
     */
    boolean updateSchoolconfig(Schoolconfig schoolconfig) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteSchoolconfig(Long id) throws Exception;

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     * @throws Exception
     */
    SchoolconfigQueryVo getSchoolconfigById(Serializable id) throws Exception;


    List<Schoolconfig> getAllList(LambdaQueryWrapper<Schoolconfig> wrapper) throws Exception;

    /**
     * 获取分页对象
     *
     * @param schoolconfigQueryParam
     * @return
     * @throws Exception
     */
    Paging<SchoolconfigQueryVo> getSchoolconfigPageList(SchoolconfigPageParam schoolconfigPageParam) throws Exception;


}
